Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add types field to esm exports map #17305

Closed
wants to merge 1 commit into from
Closed

fix: add types field to esm exports map #17305

wants to merge 1 commit into from

Conversation

alexzhang1030
Copy link

Description

When set moduleResolution to nodenext or bundler, import vuetify will shows an error:

image

Looks like we need to add types field to esm exports map to resolve this case.

related:

Markup:

@ml1nk
Copy link

ml1nk commented May 8, 2023

I had the same problem a while ago #15885 (comment). Your pull only fix the default import, but not for example /labs as .mts tries to import from .d.mts not .d.ts by default. I added my patch as #17319.

@KaelWD KaelWD closed this May 8, 2023
@alexzhang1030 alexzhang1030 deleted the fix/types branch May 8, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants